package com.rc.web.service;

import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;
import com.rc.pojo.dto.knowledge.KnowLedgeAddDTO;
import com.rc.pojo.dto.knowledge.KnowLedgeUpdateDTO;
import com.rc.pojo.dto.knowledge.KnowledgePageQuery;
import com.rc.pojo.po.Knowledge;
import com.rc.pojo.vo.knowldege.KnowledgePageVO;
import com.rc.pojo.vo.knowldege.KnowledgeVO;

import java.util.List;

/**
 *  服务层。
 *
 * @author 27806
 * @since 2024-07-01
 */
public interface KnowledgeService extends IService<Knowledge> {

    List<KnowledgeVO> getListByIllIds(List<Long> illIds);

    Page<KnowledgePageVO> getPage(KnowledgePageQuery dto);

    void deleteById(Long id);

    void add(KnowLedgeAddDTO dto);

    void updateOneById(KnowLedgeUpdateDTO dto);

    KnowledgeVO getOneById(Long id);
}
